<?php
class Sms{
	public static function isAdminUser(){
		return (Yii::app()->user->checkAccess('rights') && !Yii::app()->user->hasState("tenant_id")) ? true : false;
	}

	public static function isTenantUser(){
		return (Yii::app()->user->hasState("tenant_id")) ? true : false;
	}	
}
?>